//
//  SmallCollectionViewCell.m
//  BeautifulShoppings
//
//  Created by GivenBmli on 16/9/5.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "SmallCollectionViewCell.h"
#import "PresentModel.h"
#import "TAMacro.h"
@implementation SmallCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    self  = [super initWithFrame:frame];
    if (self) {
        [self creatSubview:frame];
        
    }
    return self;

}

- (void)setPresentModel:(PresentModel *)presentModel {
    self.name.text = presentModel.name;
}

- (void)creatSubview:(CGRect)fram {
    self.name = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH/ 5, SCREEN_WIDTH / 10)];
    self.name.font = [UIFont systemFontOfSize:13];
    [self.contentView addSubview:self.name];
}

@end
